In this update, I added the Cap input parameter, which is a Boolean value, that allows the user to cap the top level of the extruded geometry. The resulting output is the extruded 2D curves + the caps as separate objects.
No use is allowed without explicit permission from owner